package com.lz.ovuola.service;

/**
 * 用户业务层
 * 
 * @author fz
 *
 */
public interface UserService {
	/**
	 * 注册用户
	 * 
	 * @param userName
	 * @param password
	 * @param nickName
	 * @param code
	 * @param mark
	 * @param device
	 * @return
	 */
	String save(String userName, String password, String nickName, String code,
			Integer mark, String device);

	/**
	 * 更改昵称
	 * 
	 * @param nickName
	 * @param userName
	 * @return
	 */
	String updateNickName(String nickName, Integer userId);

	/**
	 * 
	 * @param bytes
	 * @param fileType
	 * @return
	 * @throws Exception
	 */
	String updateHeadImage(byte[] bytes, String fileType) throws Exception;

	/**
	 * 绑定硬件设备
	 * 
	 * @param hardwareEquipment
	 *            设备编码
	 * @param id
	 *            用户id
	 * @return
	 */
	String saveHardwareEquipment(String hardwareEquipment, Integer userId);

	/**
	 * 解绑设备
	 * 
	 * @param id
	 *            用户ID
	 * @return
	 */
	String deleteHardwareEquipment(Integer userId);

}
